package com.example.pwj.ffstudy.ui.gank.contract;


import com.example.pwj.ffstudy.base.BasePresenter;
import com.example.pwj.ffstudy.base.BaseView;
import com.example.pwj.ffstudy.bean.gank.GankBean;

import io.reactivex.Observable;

/**
 * author：liluo
 * e-mail：lastcrazysun@163.com
 * company：cusc
 * date：2017/8/28 15:56
 * description：
 */

public interface GankContact {

    interface Model{
        Observable<GankBean> getGankDatas(int count, int page);
    }

    interface View extends BaseView{
        void loadGankDatas(GankBean gankBean);
        void loadError(String errorMsg);
        void loadFinish();
    }

    interface Presenter extends BasePresenter<View>{
        void loadGankDatas(boolean isMore);
    }
}
